package com.tofacebook.mybatis.model;

import java.io.Serializable;

public class Emp implements Serializable {
    private Long empId;
    private String empName;
    private Integer age;
    private Character sex;

    //private Dept dept;
//    private Long deptId;


    /*public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }*/

    public Long getEmpId() {
        return empId;
    }

    public void setEmpId(Long empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

//    public Integer getDeptId() {
//        return deptId;
//    }
//
//    public void setDeptId(Integer deptId) {
//        this.deptId = deptId;
//    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }

    public Emp(Long empId, String empName, Integer age, Character sex) {
        this.empId = empId;
        this.empName = empName;
        this.age = age;
        this.sex = sex;
        //this.deptId = deptId;
    }

    public Emp() {}
}
